package com.firebird.app.fekpsl.mvp.me

import com.firebird.app.fekpsl.base.BasePresenter
import com.firebird.app.fekpsl.ext.ss

/**
 * Created by chenxz on 2018/6/3.
 */
class IsExplicitPresenter : BasePresenter<IsExplicitContract.Model, IsExplicitContract.View>(), IsExplicitContract.Presenter {

    override fun createModel(): IsExplicitContract.Model? = IsExplicitModel()

    override fun updateIsExplicit(userUuid: String, isExplicit: Int) {
        mModel?.updateIsExplicit(userUuid, isExplicit)?.ss(mModel, mView) {
            mView?.updateIsExplicitSuccess(success = true)
        }
    }
}